<template>
    <div class="frame">
        <div class="contact-top">
            <div class="top-icon"
                 @click="BackHam()">

                <van-icon name="arrow-left"
                          size="20"
                          color="#888" />
            </div>

            <div class="text-top">联系我们</div>

        </div>
        <div class="contact-content">
            <p>
                <span>联系电话：</span>
                <span>0871-65115777</span>
            </p>
            <p>
                <span>企业邮箱：</span>
                <span>934879691@qq.com</span>
            </p>
            <p>
                <span>企业地址：</span>
                <span>云南省曲靖市宣威市宛水街道南岩村142号</span>
            </p>

        </div>

        <div class="rotation">

            <div class="addpackage">
                <div class="package-div div-red"></div>
                <div class="package-div div-blue"></div>
                <div class="package-div div-green"></div>
            </div>

        </div>
    </div>

</template>

<script>
export default {
    components: {},
    data() {
        return {
            active: 0
        };
    },
    methods: {
        BackHam() {
            this.$router.push({ path: "/HamDivision" });
        }
    }
};
</script>

<style scoped>
* {
    padding: 0;
    margin: 0;
}
body {
    background-color: #f6f6f6;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    display: block;
}
div {
    box-sizing: border-box;
}
.frame {
    width: 100%;
    height: 227.4px;
    background: #ffffff;
}
.contact-top {
    width: 100%;
    height: 48.6px;
    line-height: 48.6px;
    text-align: center;
    border-bottom: 1px solid #f6f6f6;
    display: flex;
}
.top-icon {
    width: 21px;
    height: 48.6px;
    padding-left: 17px;
    padding-top: 8px;
}
.text-top {
    width: 248px;
    height: 48px;
    text-align: center;
    max-width: 60%;
    margin: 0 auto;
    color: #323233;
    font-weight: 500;
    font-size: 15px;
    line-height: 55px;
    padding-right: 10px;
}
.contact-content {
    width: 100%;
    height: auto;
    padding: 16px 12px;
    text-align: left;
    font-size: 17px;
    font-family: 宋体;
}
.contact-content p {
    height: 30px;
    line-height: 30px;
    color: #323233;
}

.rotation {
    width: 160px;
    height: 600px;
    background-color: transparent;
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    -moz-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    perspective: 1400px;
    -webkit-perspective: 1400px;
    -moz-perspective: 1400px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    position: absolute;
    /* animation: myfirst 5s infinite linear; */
}
.addpackage {
    transform: rotateY(120deg);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    width: 160px;
    height: 600px;

    transition: all transform 2s ease 0s;
    -webkit-transition: all transform 2s ease 0s;
    -moz-transition: all transform 2s ease 0s;

    animation: all 5000000000s infinite ease;
}
.package-div {
    position: absolute;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    -moz-perspective: 1000px;
    width: 160px;
    height: 600px;
    transform-origin: center center 0px;
    -webkit-transform-origin: center center 0px;
    -moz-transform-origin: center center 0px;
}

.div-red {
    background: url(../assets/images/rotate1.jpg);
    transform: rotateY(0deg) translateZ(46px);
    -webkit-transform: rotateY(0deg) translateZ(46px);
    -moz-transform: rotateY(0deg) translateZ(46px);
}
.div-blue {
    background: url(../assets/images/rotate2.jpg);
    transform: rotateY(120deg) translateZ(46px);
    -webkit-transform: rotateY(120deg) translateZ(46px);
    -moz-transform: rotateY(120deg) translateZ(46px);
}
.div-green {
    background: url(../assets/images/rotate3.jpg);
    transform: rotateY(240deg) translateZ(46px);
    -webkit-transform: rotateY(240deg) translateZ(46px);
    -moz-transform: rotateY(240deg) translateZ(46px);
}

@keyframes all {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(120000000000deg);
    }

    100% {
        transform: rotateY(240000000000deg);
    }
}
</style>

